import {reactive} from "vue";

export const registeryCustomerRulestomer = reactive({
    userName: [
        {required: true, message: '请输入用户名', trigger: 'blur'},
        {min: 4, max: 20, message: '用户名长度介于4位到20位之间', trigger: 'blur'},
    ],
    password: [
        {required: true, message: '请输入密码', trigger: 'blur'},
        {min: 4, max: 20, message: '密码长度介于4位到20位之间', trigger: 'blur'},
    ],
    tel: [
        {required: true, message: '请输入手机号', trigger: 'blur'},
        {min: 4, max: 20, message: '手机号格式,不合规', trigger: 'blur'},
    ],
    address: [
        {required: true, message: '请输入地址', trigger: 'blur'},
        {min: 4, max: 20, message: '地址长度介于4位到20位之间', trigger: 'blur'},
    ],
    avatar: [
        {required: true, message: '请选择店面封面', trigger: 'blur'},
    ],
})